var myModule = angular.module("myModule",[]);

myModule.controller("LoadDataCtrl",["$scope","$http",function($scope,$http){
    $http({
        method:"GET",
        url:"data.json"
    }).success(function (data,status,headers,config) {
        console.log("success...");
        console.log(data);
        $scope.users = data;
    }).error(function (data,status,headers,config) {
        console.log("error" );
    });
}]);

myModule.controller("LoadInfoCtrl",["$scope","$http",function($scope,$http){
    $http({
        method:"GET",
        url:"product.json"
    }).success(function (data,status,headers,config) {
        console.log("success...");
        console.log(data);
        $scope.infos = data;
    }).error(function (data,status,headers,config) {
        console.log("error" );
    });
}]);